<style>
body {
padding-top:0;
	line-height:1.3em;
  padding-bottom:0 !important;
  }
</style>


<div class="bodywrap" style="margin:0;padding:0">
	<div style="position:fixed; top:0px; right:0; z-index:1;"> 
    	<div>
      		<a rel="external" id="moviemode" title="Movie mode" onclick="toggle_movie_mode()">
        		<img id="start_stop_image_id" src="" alt="Pause" width="36px" height="36px"/>
      		</a>
      		<a rel="external" title="Home" href="<?php echo ApplicationConfig::getURL('', 'site', 'index');?>" onclick="HTMLOUT.resetmp3();"> 
        		<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/home.png" alt="Home" width="36px" height="36px"/>
      		</a>
    	</div>
  	</div>
	<?php 
		$path			= 	Yii::app()->request->baseUrl;
		$mp3path		=	Yii::app()->getBaseURL(true)."/mp3/";
	?>
	<?php 
    if(!empty($pages))
    {
    	$totalpagesize=sizeof($pages);
	    $pages[$totalpagesize]['image']="";
	    $pages[$totalpagesize]['description']="";

      foreach ($pages as $key=>$page)
      {
  ?>	
        	 <?php
                  if($key==$totalpagesize)
                  {
				?>	   
        	<div style="margin:0;padding:0;" data-role="page" id="<?php echo $key+1;?>" data-theme="e" class="searchPage" data-url="page=<?php echo $key+1;?>">
           
          <div data-role="content" style="margin:0;padding:0">
            <ul data-role="listview" data-inset="true" data-theme="e" style="margin:0;padding:0">
              <li id="listitem" style="margin:0;padding:0; border:0">
                <?php
                    $nextchap = Chapter::model()->getModel('NEXT-CHAPTER-ID',array('subjectid'=>$objchapter->subject_id,'order'=>$objchapter->order));
                    if($nextchap)
                    {
                      $nextchapid= $nextchap->id;
                    }
                    else
                    {
                      $nextchapid = $objchapter->subject_id;
                    }
                ?>
                <div class="quizimg" style="margin:0;padding:0">   
                  <div>
                    <div class="quizbutton">
                      <div class="header">
                        <?php if($this->pageindexname=="postQuizDetails" ){?>
                          <div class="backtop">
                          	<a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'viewQuiz',array('chapter'=>$this->chapterid));?>">
                          		<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/back_button.png" alt="back" />
                          	</a>
                        </div>
                        <?php }elseif($this->pageindexname=="viewpages"){?>
        	                 <div class="backtop">
        	                 	<a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'viewPages',array('chapter'=>$this->chapterid));?>">
        	                 		<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/back_button.png" alt="home" />
        	                 	</a>
        	                 </div>  
                        <?php }elseif($this->pageindexname!="login" && $this->pageindexname!="playquiz"){?>
        	                 <div class="backtop"><a data-rel="back"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/back_button.png" alt="home" /></a></div>
                        <?php }else {?>
                           <div class="backtop"> </div> 
                        <?php } ?>    
                        <h1 style="margin:0 !important"><div class="logo"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/school_in_mobile_logo.png" alt="school in mobile" align="left" style="margin-right:1px;"/>School in Mobile</div></h1>
                        <div class="hometop">
                          <a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'index');?>">
                            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/home.png" alt="home" />
                          </a>
                        </div>
	                    </div>
                      <div style="margin-top:5%"><h1>You reached end of the chapter.</h1></div>
                      <div style="position:relative; padding:5%; color:#fff;"> 
                         <?php 	$quizdetails1=Quiz::getList('CHAPTER-ID', array('chapterid'=>$objchapter['id']));
                          if(!empty($quizdetails1)){
                          ?>
                        <div style="position:relative; padding:2%;">
                          <a data-icon="arrow-r" rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'viewQuiz',array('chapter'=>$objchapter['id']))?>" data-role="button" class="ui-btn-right" data-theme="e" style="width:98%"><?php echo "Quiz";?></a>
                        </div>
                        <br clear="all"/>
                        <?php }?>
                        <div style="position:relative; padding:2%;">
                        	<a  rel="external" data-icon="arrow-r" href="<?php echo ApplicationConfig::getURL('', 'site','viewchapter',array('chapter'=>$objchapter->id));?>" data-role="button" class="ui-btn-right" data-theme="e" >Chapter Home</a>
                        </div>
                       	<br clear="all"/>
                       	<?php if($nextchap){?>		 
		                    <div style="position:relative; padding:2%;">
                          		<a  rel="external" data-icon="arrow-r" href="<?php echo ApplicationConfig::getURL('', 'site', 'viewPages',array('chapter'=>$nextchapid));?>"  data-role="button" class="ui-btn-right" data-theme="e" ><?php if($nextchapid == $objchapter->id){ echo "Read Again";}else{ echo "Next Chapter";}?></a>
                        	</div>
                        <?php }else{?>
                        	<div style="position:relative; padding:2%;">
                        	
                          		<a  rel="external" data-icon="arrow-r" href="<?php echo ApplicationConfig::getURL('', 'site', 'index',array('subjectnum'=>$nextchapid));?>"  data-role="button" class="ui-btn-right" data-theme="e" >Chapter List</a>
                        	</div>
                        <?php }?>		
                        <br clear="all"/>
                      </div> 
                      <div class="header1">
                         <div id="sharebox" style="position:absolute; bottom:100%; padding:1%; color:#fff; text-shadow: 0 1px 1px #000; width:98%; background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/blackbg.png)">
                           <div class="backtop"> <a rel="external" title="facebook" href="http://www.facebook.com/pages/SchoolinMobile/234910576589469"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/facebook.png" alt="facebook" width="36px" height="36px"/></a></div>
                           <div class="backtop"> <a rel="external" title="Twitter" href="https://twitter.com/SchoolinMobile"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/twitter.png" alt="twitter" width="36px" height="36px"/></a>   </div>
                           <div class="backtop"> <a rel="external" title="Youtube" href="http://www.youtube.com/user/SchoolinMobile"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/youtube.png" alt="youtube" width="36px" height="36px"/></a> </div>
                           <div class="backtop"><a rel="external" title="Googleplus" href="https://plus.google.com/111314304213657506262/about"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/googleplus.png" alt="googleplus" width="36px" height="36px"/></a> </div>
                           <div class="backtop"> <a rel="external" title="Refer a Friend" href="<?php echo ApplicationConfig::getURL('', 'site','referal');?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/system.png" alt="Refer a Friend" width="36px" height="36px"/></a> </div>
                        </div>
                        <div class="backtop"><a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'settings');?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/settings.png" alt="home" width="36px" height="36px"/></a></div>
                        <h1><div class="logo"></div></h1>
                        <div class="hometop"><a onclick="displayshare()"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/share1.png" alt="home"  width="34px" height="32px"/></a></div>
	                   </div>
	                  </div> 
                  </div>  
                </div> 
                </li>
                </ul>
                </div>
                </div>   
                <?php }else{?>
                <div style="margin:0;padding:0; background:#000" data-role="page" id="<?php echo $key+1;?>" data-theme="e" class="searchPage" data-url="page=<?php echo $key+1;?>">
           
          <div data-role="content" style="margin:0;padding:0">
            <ul data-role="listview" data-inset="true" data-theme="e" style="margin:0;padding:0">
              <li id="listitem" style="margin:0;padding:0; border:0">
                <div  style="margin:0;padding:0" align="center">
                  <div id="numberlist" class="header_page" style="margin:0;padding:0; position:fixed; border-bottom: 10px solid #000; width:100%" >
                    <h3 style="background: #febc6a; min-height:35px; padding-left:1%; line-height:30px; margin:0; text-align:left;"><?php echo $page['title']; ?></h3>
                  </div>
                  <?php if($page['image']){?>
                    <?php                 
                      //list($width, $height, $type, $attr) = getimagesize("http://techanveshan.com/eduapp/images/page/".$page['image']);
                      $width="100%";
                      $height="100%";
                      if($width>$height)
                      {
                          $width="100%";
                          $height="100%";
                       }
                       else
                       {
                          $width="100%";
                          $height="100%";
                       }                                                
                    ?>

                    <div align="center" style="border-left:10px solid #000;  background:#fff; border-right:10px solid #000;">
                    <img id="pageimage<?php echo $key+1;?>" src="<?php echo ApplicationConfig::getImageUrl("PAGE-IMAGES", array('file_name'=>$page['image']));?>" style="vertical-align:middle; height:60%" />        
                  <?php }else{?>
				            <img id="pageimage<?php echo $key+1;?>" src="<?php echo ApplicationConfig::getImageUrl("PAGE-IMAGES", array('file_name'=>'no_preview.jpg'));?>"  style="margin-bottom:30px; margin-top: 47px; height:100%"/>
				          	<?php }?>
				         </div>
                  			<div id="numberlist" class="header1" style=" color:#fff; text-shadow: 0 1px 1px #000; text-align:center; border-top: 10px solid #000; ">
			                    <div class="backtop" style="margin-left: 1%;"><div id="leftbutton"><a rel="external" title="Previous" onclick="process_previous_action()"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/left_grey.png" alt="" width="36px" height="36px" style="position: relative; top: -5px;" /></a></div></div> 
			                    <div class="backtop" style="margin-left: 23%;">  <?php $onenum=$key+1;$totalpages=$totalpagesize;echo $onenum."/".$totalpages; ?></div>
			                    <div class="hometop"><a rel="external" title="Next" onclick="process_next_action()"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/right_grey.png" alt="" width="36px" height="36px"  style="position: relative; top: -5px;"/></a> </div> 
                                
                  			</div>
                           	
                		</div>
                		<?php }?>
			        </li>
            	</ul> 
				<?php if($page['description']!=''){?>
	                <div id="description<?php echo $key+1;?>" style="position: fixed; bottom: 3em; padding: 5px 10px; overflow: hidden; color:#fff; font-size:0.95em; font-weight: normal; text-shadow: 0 1px 1px #000; width:98%; background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/blackbg.png) ">
					<?php echo strip_tags($page['description']); ?></div>
    			<?php }else{?>
                	<div id="description<?php echo $key+1;?>"></div>
                <?php } ?>
          	</div>
        </div>
        <?php }?> 
        <span id="previndex" data-index="<?php echo $key-1;?>"></span>
        <span id="nextindex" data-index="<?php echo $key+1;?>"></span>
        <span id="currentchapter" data-index="<?php echo $objchapter->id;?>"></span>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/soundmanager2.js"></script>
        <div id="jquery_jplayer_1" class="jp-jplayer"></div>    
        <?php //if( stristr($_SERVER['HTTP_USER_AGENT'],'android') ){?>
        <script type="text/javascript"> 
        document.getElementById('leftbutton').style.display="none";
        	var current_page_num 	= 	1;
        	var totalpagecount   	= 	<?php echo sizeof($pages);?>;
            var movie_mode_phone 	= 	"<?php echo $moviemode;?>";

            var Mp3Array 			= 	new Array();
            //var i=0;
            <?php 
            $ii = 0;
            	foreach($mp3Array as $m){
              ?>
            	Mp3Array[<?php echo $ii;?>]	 		= 	"<?php echo $m;?>";
            	
             <?php $ii++;}?>
       </script>

             
             
             <script type="text/javascript">
                 soundManager.url = "<?php echo Yii::app()->getBaseURL(true); ?>/swf/"; // directory where SM2 .SWFs live
               </script>
               <script type="text/javascript">
              <?php 
                $ii = 1;
            	foreach($mp3Array as $m){?>
            	var mySound<?php echo $ii;?>;
             <?php $ii++;}?>

             soundManager.onready(function(){
            	 <?php 
                      $ii = 1;
                     	foreach($mp3Array as $m){?>
                     	mySound<?php echo $ii;?> = soundManager.createSound({
                    	    id: 'aSound<?php echo $ii;?>',
                    	    url: "<?php echo Yii::app()->getBaseURL(true).'/mp3/'.$m; ?>",
                    	    // onload: myOnloadHandler,
                    	    // other options here..
                    	    onfinish: function() {
                    	    		   change_read_flag_status('READING_ENDED');
                    	    	  }	
                    	  }); 
                      <?php $ii++; }?>
                      
             }); 

                                 
             </script>
              <script type="text/javascript"> 
			//alert(Mp3Array);
            var temp_movie_mode_status;
            if(movie_mode_phone == "on"){
                temp_movie_mode_status = "ON";
			}else{
                temp_movie_mode_status = "OFF";
            }
            //temp_movie_mode_status = "OFF";   // hard coded for testing, should be based on user selection
            var current_page_read_status 	= "LOADED";
            var running_mode 				= "TEST";         // LIVE for Mobile ,   TEST for Browser
            var player_type 				= "DEFAULT";       // DEFAULT for Andriod tts, * otherwise
            var tim1;
            var tim2;
            var pause_image 				= "<?php echo Yii::app()->getBaseURL(true); ?>/images/pause.png";
            var play_image 					= "<?php echo Yii::app()->getBaseURL(true); ?>/images/play.png";
             
			function playmp3(page)
			{
				var url 					= 	"<?php echo $mp3path;?>"+Mp3Array[page-1];
				HTMLOUT.playmp3(url);
			}
			function pausemp3()
			{
				HTMLOUT.pausemp3();
			}
			function stopmp3()
			{
				HTMLOUT.stopmp3();
			}
            function move_to_next_page()
            {
            	
              npage=current_page_num+1;
                if(npage<=totalpagecount) 
                {
                	current_page_num=npage;
                  $.mobile.changePage($('#'+npage), 'slide');
                }	 
            }
            function move_to_previous_page()
            { 
            	ppage = current_page_num-1;
            	if(ppage>=1) 
            	{
            		current_page_num = ppage;
            		$.mobile.changePage($('#'+ppage), 'slide');
                }
            	if(ppage==1) 
            	{
                document.getElementById('leftbutton').style.display="none";
            	}
            }
             
            function start_reading()
            {
            	var idname="description"+current_page_num;
                var text=document.getElementById(idname).innerHTML; 
                //alert(" status:  "+temp_movie_mode_status) ;
                
                if(temp_movie_mode_status == "ON")
               	{  
                	if(running_mode == "TEST")
                	{
                		//alert(text);
                    	//alert(temp_string);
                    	//mySound1.play();
                    	//alert("Sound Manager: " + sound_manager);
                  		var temp_string = "mySound"+current_page_num+".play();";
                  		//alert("start.." + temp_string);
                 		eval(temp_string);
                	}
                	else
                	{
						playmp3(current_page_num);
                	}
                }
            }
            
             function stop_reading()
             {
             	if(running_mode == "TEST")
                {
            		  var temp_string = "mySound"+current_page_num+".stop();";
                  eval(temp_string);
                }else{
                	stopmp3();
                }
             } 
            
             function process_next_action()
             {
             	//alert("Next Hit");
               	stopmp3();
                //alert("tt: " + temp_movie_mode_status);
            	move_to_next_page();
            	if(temp_movie_mode_status == "ON")
            	{
                	toggle_movie_mode();
            		start_reading();
            	}
            
             }
            
             function process_previous_action()
             {
             	//alert("Previous Hit");
               	stopmp3();
               	//alert("tt: " + temp_movie_mode_status);
            	move_to_previous_page();
               
            	if(temp_movie_mode_status == "ON")
            	{
            		toggle_movie_mode();
            		start_reading();
            	}
             }
             
             
             function toggle_movie_mode()
             {
            	 //alert(" status:  "+temp_movie_mode_status) ;
            	 var ele_start_stop_image_id = document.getElementById('start_stop_image_id'); 
            	 
            	 if(temp_movie_mode_status == "ON")
            	 {
            		 temp_movie_mode_status = "HOLD";
            		 ele_start_stop_image_id.src = play_image;
            		 stop_reading();	
            		 clear_timers();
                 return;
            	 }
            	 else 
               {
               if(temp_movie_mode_status == "HOLD")
            	 {
            		 ele_start_stop_image_id.src = pause_image;
            		 temp_movie_mode_status = "ON";
            		 
            		 if(current_page_read_status == "READING_STARTED" || current_page_read_status == "LOADED")
            		 {
            			 start_reading();
            		 }
            		 start_timers(); 
            		
            	 }
            	}	 
             }
            
             $('div.ui-page').live("swipeleft", function(){
            	 process_next_action();
             });
             $('div.ui-page').live("swiperight", function(){ 
            	 process_previous_action()
             });
            
             function run_movie_mode()
             {
            	 if(current_page_read_status == "LOADED")
            	 {
            		 current_page_read_status = "READING_STARTED";
            		 start_reading();
            	 }
            
            	 if(current_page_read_status == "READING_ENDED")
            	 {
            		 current_page_read_status = "READING_STARTED";
            		 move_to_next_page();
            		 start_reading();
            	 }
            	 if(current_page_num == totalpagecount || temp_movie_mode_status == "OFF")
            	 {
            		 clear_timers();
            	 }
             }			
            
             function clear_timers()
             {
            	//alert("CLEAR TIMER"); 
            	tim1 = window.clearInterval(tim1);
            	if(running_mode == "TEST")
                {
            		//tim2 = window.clearInterval(tim2);
            	}
             }	
             function start_timers()
             {
             	//alert("START TIMER"); 
            	tim1 = self.setInterval("run_movie_mode()",500); 
            	if(running_mode == "TEST")
                {
            		//tim2 = self.setInterval("change_read_flag_status('READING_ENDED')",8000);
            	}
             }	

             function change_read_flag_status(value)
             {
            	 //alert("Change Status: " + value);
            	 current_page_read_status = value;
             }	
             
             function run_app()
             {
                var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));  
                if (mobile) {  
                  running_mode 				= "LIVE";   
                } 
                else
                {
                  running_mode 				= "TEST"; 
                }
               //alert("hi running mode: " + running_mode);                                 
            	 var ele_start_stop_container = document.getElementById('moviemode'); 
            	 var ele_start_stop_image_id = document.getElementById('start_stop_image_id');
               	 if(temp_movie_mode_status == "ON")
            	 {
            		 ele_start_stop_container.style.display = "";
            		 ele_start_stop_image_id.src = pause_image;
            		 start_timers();
            	 }
            	 else
            	 {
            		 ele_start_stop_container.style.display = "none";
            	 }	 
             }
             /**************************************************/ 
             
            window.onload = run_app; 
         </script>
		<?php //}else{	}?>
        
        <script type="text/javascript"> 
    		function resize(image)
            {
                var differenceHeight = document.body.clientHeight - image.clientHeight;
                var differenceWidth  = document.body.clientWidth  - image.clientWidth;
                if (differenceHeight < 0) differenceHeight = differenceHeight * -1;
                if (differenceWidth  < 0) differenceWidth  = differenceWidth * -1;
        
                if (differenceHeight > differenceWidth)
                {
                    image.style['height'] = document.body.clientHeight + 'px';
                }
                else
                {
                    image.style['width'] = document.body.clientWidth + 'px';
                }
        
                // Optional: remove margins or compensate for offset.
                image.style['margin'] = 0;
                document.body.style['margin'] = 0;
            }
            function setimage(width,height)
            {
                
                 var yourImg = document.getElementById('pageimage1');
                if(yourImg && yourImg.style) { 
                  //yourImg.style.height = height;
                   // yourImg.style.width = width;
                }
        
            }  
         </script> 
  
         <script type="text/javascript"> 
            document.getElementById("sharebox").style.display="none";  
            function displayshare()
            {
              var displaybox1=document.getElementById("sharebox"); 
               if(displaybox1.style.display=="none")
               {
                  displaybox1.style.display="block";
               }

               else if(displaybox1.style.display=="block")
               {
                  displaybox1.style.display="none";
               }
            }
        </script>
	<?php }else{ ?>
 	<div data-role="page" id="<?php echo $key+1;?>" data-theme="e" class="searchPage" data-url="page=<?php echo $key+1;?>"> 
    	<div data-role="content" style="margin:0;padding:0">
       		<ul data-role="listview" data-inset="true" data-theme="e" style="margin:0;padding:0">
          		<li id="listitem" style="margin:0;padding:0; border:0">
              		<div class="quizimg" style="margin:0;padding:0">   
                  		<div>
                     		<div class="quizbutton">
                        		<div class="header">
                          			<?php if($this->pageindexname=="postQuizDetails" ){?>
                            			<div class="backtop"><a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'viewQuiz',array('chapter'=>$this->chapterid));?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/back_button.png" alt="back" /></a></div>
                          			<?php }elseif($this->pageindexname=="viewpages"){?>
		        	                 <div class="backtop">
		        	                 	<a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'viewPages',array('chapter'=>$this->chapterid));?>">
		        	                 		<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/back_button.png" alt="home" />
		        	                 	</a>
		        	                 </div> 
                          			<?php }elseif($this->pageindexname!="login" && $this->pageindexname!="playquiz"){?>
        	                   			<div class="backtop"><a data-rel="back"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/back_button.png" alt="home" /></a></div>
                          			<?php }else {?>
                            			<div class="backtop"> </div> 
                          			<?php } ?>    
                          			<h1 style="margin:0 !important"><div class="logo"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/school_in_mobile_logo.png" alt="school in mobile" align="left" style="margin-right:1px;"/>School in Mobile</div></h1>
                          			<div class="hometop"><a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'index');?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/home.png" alt="home" /></a></div>
	                      		</div>
                        		<div style="margin-top:10%">Sorry there are no pages under this chapter.</div>
                        		<div style="position:relative; padding:5%; color:#fff;"> 
                          			<br clear="all"/>
                       	 		</div> 
                        		<div class="header1">
                          			<div id="sharebox" style="position:absolute; bottom:100%; padding:1%; color:#fff; text-shadow: 0 1px 1px #000; width:98%; background:url(<?php echo Yii::app()->request->baseUrl; ?>/images/blackbg.png)">
			                            <div class="backtop"> <a rel="external" title="facebook" href="http://www.facebook.com/pages/SchoolinMobile/234910576589469"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/facebook.png" alt="facebook" width="36px" height="36px"/></a></div>
			                            <div class="backtop"> <a rel="external" title="Twitter" href="https://twitter.com/SchoolinMobile"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/twitter.png" alt="twitter" width="36px" height="36px"/></a>   </div>
			                            <div class="backtop"> <a rel="external" title="Youtube" href="http://www.youtube.com/user/SchoolinMobile"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/youtube.png" alt="youtube" width="36px" height="36px"/></a> </div>
			                            <div class="backtop"><a rel="external" title="Googleplus" href="https://plus.google.com/111314304213657506262/about"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/googleplus.png" alt="googleplus" width="36px" height="36px"/></a> </div>
			                            <div class="backtop"> <a rel="external" title="Refer a Friend" href="<?php echo ApplicationConfig::getURL('', 'site','referal');?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/system.png" alt="Refer a Friend" width="36px" height="36px"/></a> </div>
                          			</div>
                          			<div class="backtop"><a rel="external" href="<?php echo ApplicationConfig::getURL('', 'site', 'settings');?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/settings.png" alt="home" width="36px" height="36px"/></a></div>
                          			<h1><div class="logo"></div></h1>
                          			<div class="hometop"><a onclick="displayshare()"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/share2.png" alt="home"  width="34px" height="32px"/></a></div>
	                      		</div>
	                   		</div> 
                  		</div>  
              		</div> 
            	</li>
          	</ul>
        </div>
     </div>
 	<?php }?>
</div>